from machine import Pin
import machine
if machine.wake_reason() == 2:
    print("wake")
if machine.wake_reason() == 0:
    print("poweron")
    import esp32c3
    esp32c3.f()
if machine.wake_reason() == 4:
    print("Deepsleep wake")
    import C3d
    C3d.deepwake()